package com.guojian.common.view;

public class DataView {

	private boolean status;

	private Object data;

	private String msg;

	public DataView(boolean status, Object data) {
		this.status = status;
		this.data = data;
		this.msg = status ? "操作成功!" : "操作失败!";
	}

	public DataView(boolean status, Object data, String msg) {
		this.status = status;
		this.data = data;
		this.msg = msg;
	}

	public boolean isStatus() {
		return status;
	}

	public Object getData() {
		return data;
	}

	public DataView setStatus(boolean status) {
		this.status = status;
		return this;
	}

	public DataView setData(Object data) {
		this.data = data;
		return this;
	}

	public String getMsg() {
		return msg;
	}

	public DataView setMsg(String msg) {
		this.msg = msg;
		return this;
	}

}
